﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BusinessLogic.Data
{
    public class User
    {
        public int ID { get; set; }

        public string Name { get; set; }

        public bool IsAdmin { get; set; }

        public DateTime RegistrationDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        public void Load(DataRow row)
        {
            ID = row.Field<int>("ID");
            Name = row.Field<string>("Name");
            RegistrationDate = row.Field<DateTime>("RegistrationDate");
            IsAdmin = row.Field<bool>("IsAdmin");
        }
    }
}
